<?php include 'header.php'; ?>


<!-- MAIN -->
<div id="main">	
    <div class="wrapper">

        <!-- slider holder -->
        <div id="slider-holder" class="clearfix">

            <!-- slider -->
            <div class="flexslider home-slider">
                <ul class="slides">
                    <li>
                        <img src="<?php echo base_url()."htdocs/";?>img/slides/01.jpg" alt="alt text" />
                        <!--<p class="flex-caption">Tên cây ...</p>-->
                    </li>
                    <li>
                        <img src="<?php echo base_url()."htdocs/";?>img/slides/02.jpg" alt="alt text" />
                        <!--<p class="flex-caption">Tên cây ...</p>-->
                    </li>
                    <li>
                        <img src="<?php echo base_url()."htdocs/";?>img/slides/03.jpg" alt="alt text" />
                        <!--<p class="flex-caption">Tên cây ...</p>-->
                    </li>
                    <li>
                        <img src="<?php echo base_url()."htdocs/";?>img/slides/04.jpg" alt="alt text" />
                        <!--<p class="flex-caption">Tên cây ...</p>-->
                    </li>
                </ul>
            </div>
            <!-- ENDS slider -->

            <div class="home-slider-clearfix "></div>

            <!-- Headline -->
            <div id="headline">
                <h1>Lời giới thiệu</h1>
                <p>Shop cây để bàn Hà Nội - Bắc Ninh<br/>Hân hạnh được phục vụ quý khách
                    <br/> SĐT liên hệ: 01655353297 <br/> Địa Chỉ : 24/12 Mễ Trì Hạ , Từ Liêm , Hà Nội
                    <br/>Email : canlacongay@gmail.com<br/>
                    <a href="http://www.treeshop.vn">Website : http://www.treeshop.vn</a>
                </p>
                <em id="corner"></em>
            </div>
            <!-- ENDS headline -->


        </div>
        <!-- ENDS slider holder -->


        <!-- caydeban-block -->
        <div class="home-block" >
            <h2 class="home-block-heading"><span>Cây để bàn</span></h2>
            <div class="one-third-thumbs clearfix" >
                <?php 
                if(isset($list_tree1)){
                    $i = 1;
                    foreach ($list_tree1 as $tree) { 
                    ?>
                    <div class="item <?php if ($i % 3 == 0) { ?>last<?php } ?>">
                        <?php if($tree['Number']<=0){?>
                        <div class="chay_hang"></div>
                        <?php }?>
                        <div class="top_figure">
                            <span class="name"><?php echo $tree["Name"];?></span>
                            <div class="ma_so"><p>MS: <span style="color:#C00D09; "><?php echo showMaSo($tree["MaSo"]);?></span></p></div>
                            <!--<div class="entry-date"><div class="number">23</div></div>-->
                            <!--<hr />-->
                        </div>
                        <figure >
                            <figcaption>
                                <strong><?php echo $tree["Name"];?></strong>
                                <span><?php echo $tree['Description'];?></span>
                                <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>" class="opener"></a>
                            </figcaption>

                            <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>"  class="thumb"><img src="<?php echo base_url()."htdocs/";?>img/tree/<?php echo $tree["MaSo"]?>.jpg"  /></a>
                        </figure>
                        <div class="bottom_figure">
                            <a href="#"><img class="datmua" src="<?php echo base_url()."htdocs/";?>img/button-mua.png" /></a>
                            <p class="gia">Giá: <span style="color:#C00D09; "><?php echo $tree['Price'];?>K</span></p>
                        </div>
                    </div>
                <?php 
                    if($i == 6) break;
                    $i++;
                    }
                }
                ?>
                <a href="home/treeshop1" class="more-link right">Xem thêm &#8594;</a>
            </div>
        </div>
        <!-- ENDS caydeben-block -->

             <!-- caynaymam-block -->
        <div class="home-block" >
            <h2 class="home-block-heading"><span>Cây nảy mầm</span></h2>
            <div class="one-third-thumbs clearfix" >
                <?php 
                if(isset($list_tree2)){
                    $i = 1;
                    foreach ($list_tree2 as $tree) { 
                    ?>
                    <div class="item <?php if ($i % 3 == 0) { ?>last<?php } ?>">
                        <?php if($tree['Number']<=0){?>
                        <div class="chay_hang"></div>
                        <?php }?>
                        <div class="top_figure">
                            <span class="name"><?php echo $tree["Name"];?></span>
                            <div class="ma_so"><p>MS: <span style="color:#C00D09; "><?php echo showMaSo($tree["MaSo"]);?></span></p></div>
                            <!--<div class="entry-date"><div class="number">23</div></div>-->
                            <!--<hr />-->
                        </div>
                        <figure >
                            <figcaption>
                                <strong><?php echo $tree["Name"];?></strong>
                                <span><?php echo $tree['Description'];?></span>
                                <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>" class="opener"></a>
                            </figcaption>

                            <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>"  class="thumb"><img src="<?php echo base_url()."htdocs/";?>img/tree/<?php echo $tree["MaSo"]?>.jpg"  /></a>
                        </figure>
                        <div class="bottom_figure">
                            <a href="#"><img class="datmua" src="<?php echo base_url()."htdocs/";?>img/button-mua.png" /></a>
                            <p class="gia">Giá: <span style="color:#C00D09; "><?php echo $tree['Price'];?>K</span></p>
                        </div>
                    </div>
                <?php 
                    if($i == 6) break;
                    $i++;
                    }
                }
                ?>
                <a href="home/treeshop2" class="more-link right">Xem thêm &#8594;</a>
            </div>
        </div>
        <!-- ENDS cay nay mam-block -->
        
        <!-- cay trong nuoc-block -->
        <div class="home-block" >
            <h2 class="home-block-heading"><span>Cây trong nước</span></h2>
            <div class="one-third-thumbs clearfix" >
                <?php 
                if(isset($list_tree3)){
                    $i = 1;
                    foreach ($list_tree3 as $tree) { 
                    ?>
                    <div class="item <?php if ($i % 3 == 0) { ?>last<?php } ?>">
                        <?php if($tree['Number']<=0){?>
                        <div class="chay_hang"></div>
                        <?php }?>
                        <div class="top_figure">
                            <span class="name"><?php echo $tree["Name"];?></span>
                            <div class="ma_so"><p>MS: <span style="color:#C00D09; "><?php echo showMaSo($tree["MaSo"]);?></span></p></div>
                            <!--<div class="entry-date"><div class="number">23</div></div>-->
                            <!--<hr />-->
                        </div>
                        <figure >
                            <figcaption>
                                <strong><?php echo $tree["Name"];?></strong>
                                <span><?php echo $tree['Description'];?></span>
                                <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>" class="opener"></a>
                            </figcaption>

                            <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>"  class="thumb"><img src="<?php echo base_url()."htdocs/";?>img/tree/<?php echo $tree["MaSo"]?>.jpg"  /></a>
                        </figure>
                        <div class="bottom_figure">
                            <a href="#"><img class="datmua" src="<?php echo base_url()."htdocs/";?>img/button-mua.png" /></a>
                            <p class="gia">Giá: <span style="color:#C00D09; "><?php echo $tree['Price'];?>K</span></p>
                        </div>
                    </div>
                <?php 
                    if($i == 6) break;
                    $i++;
                    }
                }
                ?>
                <a href="home/treeshop3" class="more-link right">Xem thêm &#8594;</a>
            </div>
        </div>
        <!-- ENDS cay trong nuoc-block -->
        
        <!-- cay cho ngay le-block -->
        <div class="home-block" >
            <h2 class="home-block-heading"><span>Cây cho ngày lễ</span></h2>
            <div class="one-third-thumbs clearfix" >
                <?php 
                if(isset($list_tree4)){
                    $i = 1;
                    foreach ($list_tree4 as $tree) { 
                    ?>
                    <div class="item <?php if ($i % 3 == 0) { ?>last<?php } ?>">
                        <?php if($tree['Number']<=0){?>
                        <div class="chay_hang"></div>
                        <?php }?>
                        <div class="top_figure">
                            <span class="name"><?php echo $tree["Name"];?></span>
                            <div class="ma_so"><p>MS: <span style="color:#C00D09; "><?php echo showMaSo($tree["MaSo"]);?></span></p></div>
                            <!--<div class="entry-date"><div class="number">23</div></div>-->
                            <!--<hr />-->
                        </div>
                        <figure >
                            <figcaption>
                                <strong><?php echo $tree["Name"];?></strong>
                                <span><?php echo $tree['Description'];?></span>
                                <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>" class="opener"></a>
                            </figcaption>

                            <a href="<?php echo base_url();?>home/detail/<?php echo $tree["MaSo"] ?>"  class="thumb"><img src="<?php echo base_url()."htdocs/";?>img/tree/<?php echo $tree["MaSo"]?>.jpg"  /></a>
                        </figure>
                        <div class="bottom_figure">
                            <a href="#"><img class="datmua" src="<?php echo base_url()."htdocs/";?>img/button-mua.png" /></a>
                            <p class="gia">Giá: <span style="color:#C00D09; "><?php echo $tree['Price'];?>K</span></p>
                        </div>
                    </div>
                <?php 
                    if($i == 6) break;
                    $i++;
                    }
                }
                ?>
                <a href="home/treeshop4" class="more-link right">Xem thêm &#8594;</a>
            </div>
        </div>
        <!-- ENDS cay cho ngay les-block -->



    </div>
</div>
<!-- ENDS MAIN -->

<?php include 'footer.php'; ?>